package cn.jd.org.mapper;

import cn.jd.org.domain.EmployeeRole;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EmployeeRoleMapper {
    @Select("select * from t_employee_role")
    List<EmployeeRole> findAll();

    void saveId(@Param("id") Long id,@Param("roles") List<Long> roles);
    @Delete("delete from t_employee_role where employee_id=#{id}")
    void deleteById(Long id);
}
